package com.hjq.demo.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.dylanc.viewbinding.brvah.getBinding
import com.hjq.demo.R
import com.hjq.demo.databinding.CopyItemBinding

/**
 *
 * @author he
 * 创建日期 2022/1/24
 * 描述 viewbinding 结合 bravh 通用的adapter
 *
 */
class FooAdapter : BaseQuickAdapter<String, BaseViewHolder>(R.layout.copy_item) {


    override fun convert(holder: BaseViewHolder, item: String) {

        holder.getBinding(CopyItemBinding::bind).apply {
            tvCopy.text = item
        }
    }

}